export interface ResponseData {
  code?: number
  message?: string
  ok?: boolean
}
export interface RoomInformation {
  id: number
  roomNumber: string
  name: string
  address: string
  maxSize: number
  isEquipment: boolean
  status: boolean
}

export interface basePage {
  currentPage?: number
  pageSize?: number
}
//   包含全部会议室数据的ts类型
export type Rooms = RoomInformation[]

export interface AllRooms extends ResponseData {
  data: Rooms
}

// 获取已有全部会议室的数据ts类型
export interface RoomInformationResponseData extends ResponseData {
  data: {
    records: Rooms
    total: number
    size: number
    current: number
    orders: []
    searchCount: boolean
    pages: number
  }
}

export interface searchRoom extends basePage {
  address?: string
  isEquipment?: boolean | string
  status?: boolean | string
}
